//
//  GLBombVIiew.m
//  QAQ打飞机
//
//  Created by admin on 15/9/6.
//  Copyright (c) 2015年 gl. All rights reserved.
//

#import "GLBombVIiew.h"

@implementation GLBombVIiew
-(id)initWithEquip:(GLEquipVV *)equip imagesRes:(GLImageResource *)imageRes
{
    self =[super init];
    if (self !=nil)
    {
        self.equip =equip;
        //图像
        switch (equip.equiptype)
        {
            case knBomb:
                self.image = imageRes.btnBomb;
                break;
            case knBullet:
                self.image =imageRes.equipImage[0];
                break;
            default:
                break;
        }
        //设置视图的边框和中心点
        [self setFrame:CGRectMake(0, 0, self.image.size.width, self.image.size.height)];
        [self setCenter:equip.EquipPoint];
    }
    return self;
}

@end
